<script type="text/javascript">
var _d = DialogManager.get('config_dialog');
_d.setWidth(440);
_d.setPosition('center');
$(function(){
	$("select[name='img_recom_id']").change(function(){
		switchRecommend(this.value, 'img_cate_id');
	});
	
	switchRecommend($("select[name='img_recom_id']").val(), 'img_cate_id');
});

function switchRecommend(recomId, selectName)
{
    if (recomId >= 0)
    {
        $("select[name='" + selectName + "']").hide();
    }
    else
    {
        $("select[name='" + selectName + "']").show();
    }
}
</script>
<div class="field_item">
    <label>左侧广告图片(<span>图片尺寸：484*177，支持 gif|jpg|jpeg|png 格式</span>)</label>
    <p><input type="file" name="ad_image_file" /><input type="hidden" name="ad_image_url" value="{$options.ad_image_url}" /></p>
    <!-- {if $options.ad_image_url} --><p><img src="{$options.ad_image_url|url_format}" height="20" /></p><!-- {/if} -->
    <label>左侧广告图片链接地址:</label>
    <p><input type="text" name="ad_link_url" value="{$options.ad_link_url}" /></p>
    <label>品牌标签:</label>
    <p><input type="text" name="btag" value="{$options.btag}" /></p>
</div>



